package com.ssmbook2020.bean;

import java.text.DecimalFormat;

public class BookBean implements java.io.Serializable{

	String bookId="";
	String ISBN="";
	String bookname="";
	String author="";
	String imageFile="";
	int editionNumber=1;
	String publisher="";
	double price=0d;
	double discount=1;
	
	@Override
	public String toString() {
		return "BookBean [bookId=" + bookId + ", ISBN=" + ISBN + ", bookname=" + bookname + ", author=" + author
				+ ", imageFile=" + imageFile + ", editionNumber=" + editionNumber + ", publisher=" + publisher
				+ ", price=" + price + ", discount=" + discount +  "]";
	}

	public BookBean() {
		super();
	}

	public BookBean(String bookId, String iSBN, String bookname, String author, String imageFile, int editionNumber,
			String publisher, double price, double discount) {
		super();
		this.bookId = bookId;
		ISBN = iSBN;
		this.bookname = bookname;
		this.author = author;
		this.imageFile = imageFile;
		this.editionNumber = editionNumber;
		this.publisher = publisher;
		this.price = price;
		this.discount = discount;
	
	}

	DecimalFormat df =new DecimalFormat("0.00");

	public String getBookId() {
		return bookId;
	}

	public void setBookId(String bookId) {
		this.bookId = bookId;
	}

	public String getISBN() {
		return ISBN;
	}

	public void setISBN(String iSBN) {
		ISBN = iSBN;
	}

	public String getBookname() {
		return bookname;
	}

	public void setBookname(String bookname) {
		this.bookname = bookname;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getImageFile() {
		return imageFile;
	}

	public void setImageFile(String imageFile) {
		this.imageFile = imageFile;
	}

	public int getEditionNumber() {
		return editionNumber;
	}

	public void setEditionNumber(int editionNumber) {
		this.editionNumber = editionNumber;
	}

	public String getPublisher() {
		return publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public double getDiscount() {
		return discount;
	}

	public void setDiscount(double discount) {
		this.discount = discount;
	}
	
   	
}
